<?php
require('conn.php');
if(isset($_POST["save"])){
    // //收集从1,html post 1
    $username = $_POST["username"];
    $email = $_POST["email"];
    $mobile = $_POST["moblie"];
};

 $sql="insert into users(name,email,moble)values('$username','$email','$mobile')";
    //echo $sql;
// mysqli_query($link,$sql);
if (mysqli_query($link,$sql)) {
    // 执行正确的时候
    //返回首页
    header("Location:index.php");
} else {
    echo "Erroe:".mysqli_error($link);
}

?>